Agricultural Economic Risk Forecast Based on Data Mining Technology

In order to improve the effect of agricultural economic risk forecast, this paper studies the agricultural economic risk forecast combined with data mining technology and builds an intelligent agricultural economic risk forecast system. Moreover, this paper employs a dynamic factor model to estimate common factors that drive changes in target topics. In order to construct a sentiment index that can reflect the overall operating situation of the macroeconomy, this paper improves the agricultural economic risk mining algorithm and standardizes the sentiment value corresponding to the target theme. In addition, this article analyzes the sentiment changes of its individual topics one by one in combination with the specific economic environment. The simulation study shows that the agricultural economic risk forecast system based on data mining technology proposed in this paper has a good effect.


Introduction
Market risk refers to the uncertainty of whether agricultural producers and operators can successfully sell agricultural products produced by using agricultural scientific and technological achievements or whether individual labor can be converted into social labor for profit in agricultural promotion.
is is the primary and biggest risk of agricultural extension work under market economy conditions. In the process of agricultural marketization, the important basis for agricultural extension is market information, including market supply and demand information and price information.
ousands of scattered market entities are induced by market prices and interests, lack of information connection with each other, and are excluded or lack cooperation due to competition and eventually fall into the market "trap." As a result, the "thrilling jump" failed, which not only broke the commodity but also feared the producer itself. Its actual performance is structural convergence, waste of resources, and damage to farmers [1]. Since agriculture takes living organisms as the production and operation object, the products are destructible and intolerant of storage [2]. At the same time, the planting industry in agriculture has a wide spatial distribution and a long production cycle and is greatly constrained by the natural environment and natural conditions. Various natural disasters in nature, such as floods, droughts, hail, frost, rain and little sunshine, low temperatures, and pests and diseases, will cause losses to agricultural production. In light cases, it will lead to the reduction of production and income, and in heavy cases, there will be no gains, thus forming natural risks of agricultural production and agricultural extension [3].
Generally speaking, agricultural producers and operators will be induced by market information and simply follow the principle of "whatever is in short supply, whatever is high in price, and what is more profitable, just plant or raise whatever" to implement and apply new agricultural technologies. Although the market can allocate resources effectively, there are also "traps." is is because, on the one hand, the information reflected by the market is real-time information, and this information only reflects the nature of the market and cannot reflect the stipulation of market volume;, that is, no matter how big is the gap between supply and demand in the market and how much will be supplied in the market in the future, it cannot be reflected, so that when the supply exceeds the demand, the producers rush up and when the supply exceeds the demand, the producers rush down. On the other hand, the market regulation of agricultural products with a long production cycle has a particularity. According to the "cobweb theory," the demand for agricultural products is a function of the current price, while the supply of agricultural products is a function of the price of the previous period, that is, the high demand caused by the current supply exceeds the demand. e price induces more supply in the next period, which leads to a decrease in price. e low price caused by oversupply induces a small supply in the next period, and the low supply leads to an increase in price, and the cycle continues. In this way, the production decisions of agricultural product producers are always made based on the price information of the previous period, which eventually leads to periodic "difficulty in selling" agricultural products.
In order to improve the ability to cope with agricultural economic risks, this paper combines data mining technology to study agricultural economic risk forecast and builds an intelligent agricultural economic risk forecast system to improve the effect of agricultural economic risk forecast.

Related Work
Looking at the history and current situation of agricultural science and technology promotion in various countries in the world, although the political systems, economic levels, agricultural equipment, technical conditions, and the cultural and technical quality of farmers vary from country to country, the agricultural extension systems of most agriculturally developed countries have been privatized and the characteristics of customization, diversification, and integration, agricultural economics, business management, planning, marketing, and other economic sciences, rural sociology, psychology, organization, education, etc., were introduced into the construction of agricultural extension systems. Behavioural sciences such as communication science make the agricultural extension system step into a virtuous circle [4]. Agricultural extension is full of dynamism, showing a vigorous momentum. Most countries are government-run agencies based on the government's Ministry of Agriculture which are the main form of agricultural extension organizations. Even though the United States and the United Kingdom are economically developed and rich in resources, their grain and other major agricultural products are produced in large quantities, but they have not given up on the government. e agricultural extension organization is established as the main body [5].
is fully reflects the importance these countries attach to agricultural extension. In recent years, the proportion of government investment in agricultural extension has tended to decrease. However, this is also due to the gradual improvement of the agricultural extension system in these countries. After entering a virtuous circle, various parties raised funds, the reason for the smoother channels [6]. At the same time, the agricultural extension organizations in most foreign countries implement vertical leadership and comprehensive setting, which avoids a lot of waste of resources caused by the double leadership of "stripes" and "blocks" and repeated institutional settings [7]. In terms of operation mechanism, agricultural extension organizations in most foreign countries are closely linked with agricultural and scientific research and education, forming an operating mechanism of smooth information, exchange of needs, and full cooperation, effectively solving the combination of agricultural extension, scientific research, and educational questions [8].
e study in [9] pointed out that although the operation of "farm yield insurance" for independent and scattered individual farmers is more complicated, the management cost is higher and it faces adverse selection and moral hazard problems, but compared with the government's disaster relief plan, agricultural insurance is a more stable farm income. e study in [10] pointed out that agricultural insurance effectively guarantees the continuity of agricultural production, which is more effective than simply providing financial support. e study in [11] believed that agricultural insurance plays a significant role in promoting agricultural development, reducing poverty, and restoring agricultural production. e study in [12] pointed out the necessity of crop insurance as an antirisk tool. e study in [13] proposed that agricultural insurance is an important part of rural finance, and it is an effective way to diversify risks, which can effectively reduce the risk of farmers using new technologies for production. e study in [14] showed that the development of agricultural insurance has promoted the innovation of agricultural production technology and the stability of income. e study in [15] studied that agricultural economic growth benefits from the development of agricultural insurance to a certain extent, and within a certain range, by increasing agricultural insurance premium income and expanding agricultural insurance claims, it can effectively and positively promote the growth of the agricultural economy. e study in [16] analyzed the development process of agricultural insurance in developed countries and believed that the development of agricultural insurance is a necessary condition for creating modern agriculture. Agricultural insurance has huge development potential and is an indispensable part of modern agricultural economic growth. e study in [17] believed that various combinations of insurance products promote the good development of urban agriculture, and agricultural insurance in the product combination is an indispensable part, which plays a good role in promoting the growth of the agricultural economy [18]. e study in [19] believed that agricultural insurance is conducive to stabilizing the national economy and social life at the macrolevel; at the microlevel, it can compensate farmers' losses, stabilize the source of funds for farmers, and enhance farmers' ability to repay loans. In turn, the economic level will also affect agricultural insurance. On the one hand, the level of economic development affects the supply and demand of agricultural insurance, and on the other hand, the economic policies formulated by the state will also affect the development of agricultural insurance. e study in [20] believed that agricultural insurance can help agricultural production to diversify risks and compensate for losses, thereby helping farmers to stabilize production and increase income. e welfare effects, credit support effects, and policy effects of agricultural insurance will bring favorable multipliers to the entire economy effect. e study in [21] believed that agricultural insurance can achieve capital magnification through various ways, such as the demonstration and assistance role of financial input, the linkage mechanism between banks and credit, and the improvement of the use efficiency of financial input. e study in [22] analyzed the interaction basis and mechanism between agricultural insurance and rural credit and believed that agricultural insurance can make use of its risk diversification function to achieve Pareto improvement of resource allocation in rural credit, thereby increasing agricultural production and developing rural areas.

Agricultural Economic Data Processing Based on Data Mining
In the process of processing agricultural economic data, the first use of this paper is the latent Dirichlet allocation model, referred to as the LDA model. is model is a document generation model that can be used to identify hidden topic information in large-scale corpora. e model believes that any document in the document set is composed of multiple topics, and each topic is composed of multiple keywords. First, it selects a topic with a certain probability and then selects a certain keyword under the topic with a certain probability. In this way, the first keyword of the document is generated, and the whole document is generated by repeating it continuously. Specifically, a document contains three layers, namely, the document layer, the topic layer, and the vocabulary layer. e document structure diagram is shown in Figure 1. e model assumes that any document is a mixture of multiple topics, the document is the probability distribution of multiple topics, and any topic is the probability distribution of multiple words. On this basis, the model is improved and the Dirichlet distribution prior of topic-word distribution is added. e model representation is shown in Figure 2. Figure 2 includes hyperparameters α and β, topic-word distribution, and document-topic distribution. W marked in black indicates that the keyword it represents is the only observable variable in the document, and the conditional probability is shown in the direction of the arrow in the figure. e specific steps for generating documents in the LDA model are as follows: (a) For any document d ∈ D, the multinomial distribution parameters W d,j of the topics on document d can be obtained from θ d ∼ Dir(α) (b) For any topic z ∈ K, the multinomial distribution parameter ϕ z of the vocabulary on topic z can be obtained from j z ∼ Dir(β) In LDA models, θ and φ cannot be obtained directly; therefore, the two parameter values are usually approximated by parameter estimation methods.
In order to identify the covariability characteristics of the economic cycle, this paper uses the dynamic factor model method to estimate the selected seven representative target themes and obtains the common factors that drive their changes. For a long time, the dynamic factor model has been widely used in the processing and research of high-dimensional data and has achieved good results in constructing economic indicators and forecasting. One of the core theoretical ideas of the dynamic factor model assumes that the change of the high-dimensional time series set X t Computational Intelligence and Neuroscience can be driven by two parts. One part is driven by the intrinsic dynamic factor f t , and the other part is driven by the differential variation caused by the heterogeneous perturbation term e t of the mean P. e t contains the unique attribute or measurement error of a variable sequence at time t, and the change of dynamic factor f t obeys a VAR process. e model of the dynamic factor can be expressed as follows: Here, X t is an N × 1 time series observation variable, and f t is a q × 1-dimensional potential dynamic factor, which affects all N sequences in X t . Λ j is an N × q-dimensional dynamic factor loading matrix, j � 0,1,. . .,s, and e t is a heterogeneous variable, which only affects a specific variable X t . e dynamic factor f t obeys the VAR (h) process.
Here, ε t ∼ i.i.dN(0, Q), and we assume that e t T 1 and ε t T 1 are independent of each other. It can be seen from the previous formula that the dynamics of the dynamic factor model are mainly reflected in two aspects. One, equation (1) contains a lag term, which accounts for the dynamics between the variable X t and the factor f. Second, it can be seen from equation (2) that the dynamic factor itself obeys a VAR process, which reflects the dynamic nature of the factor. ese two dynamics are the biggest difference from the static factor model. If s � 0, there is no lag term in equation (1), and the model becomes a static factor model. e usual factor analysis model does not take into account the dynamics between X and factor f. erefore, for time series data, it is more reasonable to use a dynamic factor model for analysis. e dynamic factor model can be expressed in the form of the following static factors: We can get Here, the number of static factors is q × (s + 1), and the dimension of F is q × (s + 1). e number of states of the Markov mechanism transition vector autoregressive model is M, and the observation time series y can be generated in the following ways: Here, θ m is the parameter vector of the VAR model in the zone m � 1,2,. . .,M, and Y t−1 is the time series observation vector Y t−1 ∞ j�1 . By giving a state s t , the P-order vector autoregressive model a of y t can be obtained.
Here, u t is a white noise process with 0 mean and covariance matrix (s t ), that is, u t ∼ N(0, (s t )), whose value is related to the unobservable state variable s. In the MS-VAR model, s t is assumed to consist of a uniform Markov chain of discrete states: e state transition probability P ij � Pr(s t | s t+1 � j|s t � i ) is the probability of going from state i to state j. Under the premise that state i is determined, it has nothing to do with the previous state. e transition probability matrix is P 11 P 12 · · · P 1M P 21 P 22 · · · P 2M · · · · · · · · · · · · P M1 P M2 · · · P MM Here, M j�1 P j , ∀i, j ∈ 1, ..., M { }. If u t ∼ N(0, (s t )), the equation can be expressed in the following mean-adjusted form: MS-VAR models are subdivided into different class models based on whether the mean, variance, intercept term, and regression coefficients depend on state transition variables. e sentiment value of the topic needs to be obtained from the document. Since the documents can be arranged according to time, it can be seen from the analysis results of the above LDA that for any day t, n a t represents all the articles on the t-th day. For any article n on day t, there is always a topic k with the highest degree of relevance to it. is paper uses D a t,n,k to describe the degree of relevance between the article and the topic (that is, the probability of the chapter corresponding to topic k). At this time, by calculating the sentiment value S a t,n of the article n a , according to the calculation formula, S t,k � S t,n a × D t,n a ,k , the sentiment value of topic k on day t can be obtained. If topic k appears more than once on day t, the sentiment value of all documents corresponding to topic k in the day is summed up as the sentiment value of topic k on that day. At this time, the emotional value of topic k on day t will be affected by two factors, one is the number of times topic k appears that day, and the other is the emotional value of topic k itself. e documents are sorted by time, and finally, the sentiment value matrix D 0 of T d × K can be obtained, where T d represents the number of days in the sample interval, K represents the number of topics, and the value in the matrix is the sentiment value of the topic k on that day. Since the real GDP growth rate is quarterly data, the daily sentiment values of the topic are summed quarterly here and the summed values are subjected to min-max normalization processing by the column to obtain the quarterly sentiment matrix D 1 .

4
Computational Intelligence and Neuroscience e dynamic factor model is used to estimate the common factors that drive the change in the target topic. When estimating, the number r of the factors to be estimated should be determined first. is paper uses the information criterion to perform the analysis.
is criterion comprehensively considers the benefits and costs of adding factors and finally selects the number of factors r that minimizes the IC value as the optimal number of factors. e specific theory is as follows: Here, is the residual sum of squares when the number of factors is determined as k, is the penalty term, N is the number of observable variables, where N � 7 in this paper, and T is the length of time. is article aggregates daily data into quarterly data, so T � 63. e above-mentioned method is used to test the optimal number of factors of the target theme emotion variable, and the test results are shown in Table 1.
It can be seen from the above-mentioned estimation results that when it is 1, the IC value is the smallest, which is 6.6333. erefore, this paper extracts a dynamic factor and uses the Bayesian model estimation method based on MCMC to estimate the dynamic factor model.

Agricultural Economic Risk Forecast
Based on Data Mining Technology is paper combines the BP neural network and the method of Section 3 to carry out agricultural economic data mining analysis. e risk assessment model of agricultural high-tech investment projects based on artificial neural networks is used to evaluate the risk of agricultural high-tech investment projects through the learning and training of neural networks and a series of evaluation indicators, strives to get rid of human subjective factors, and makes full use of the knowledge and experience of experts to provide support for relevant decision makers, as shown in Figure 3. e risk assessment model of agricultural high-tech investment projects based on the BP artificial neural network in this paper is realized by the MATLAB6.0 program. Firstly, the risk assessment of the project is systematically modeled, and the structure of the risk assessment system model is shown in Figure 4.
Since there is no fixed risk evaluation reference value as a standard for the risk of agricultural high-tech investment projects, the establishment of this model is mainly used to select solutions from multiple projects. For a project, we can adjust the selection or carry out risk management on the invested project according to the size of the risk. When evaluating multiple projects, projects with low risks and high benefits are ideal choices, while projects with high risks and low benefits are generally not selected. When the risks and benefits of several projects are equal and it is difficult to select, the results are generally obtained by analyzing the size of "(1-risk)/benefits." e smaller the result, the smaller the risk of the project's unit benefit.

Computational Intelligence and Neuroscience
Venture capital activities include four stages, namely, fund raising, fund investment, fund management, and fund exit. Fund raising stage refers to raising venture capital from various investors to form venture capital institutions or venture capital funds. e stage of capital investment means that after preliminary screening, value assessment, and due diligence of the start-up enterprises are qualified, the startup enterprises are negotiated and signed relevant investment agreements, and finally, the venture capital is invested in the start-up enterprises in various ways. e fund management stage refers to the value-added management of the invested company by participating in the board of directors of the invested company, participating in strategic decision-making, and assisting the company in its follow-up financing. e capital withdrawal stage refers to the capital withdrawal through the listing, acquisition and merger, and liquidation of the invested company, and the investment income will be distributed to each investor of the invested project. e process and stages of agricultural venture capital investment are shown in Figure 5.
Venture capital institutions are faced with a two-tier principal-agent relationship. During the operation of venture capital, the separation of capital ownership and control has been realized. e venture capital provider of the original capital provider forms the first-level principal-agent relationship with the venture capital institution as the venture capital manager. When a venture capital institution chooses a start-up enterprise for investment, a second-level principal-agent relationship is formed. e dual entrustment relationship of venture capital is shown in Figure 6.
Due to the limitations of contract farming itself, its role in risk avoidance is extremely limited. As a more advanced market form, the futures market can not only effectively avoid risks, but also provide a carrier for the operation of contract farming. Moreover, the two most important functions of futures trading are the risk transfer mechanism and price discovery mechanism. First, futures trading has a risk diversification and value preservation mechanism, which is conducive to the steady development of agricultural production. Spot trading cannot avoid the risk of loss due to market price fluctuations, while futures trading can make up for losses in the spot market, transfer risks through hedging, and reduce losses for producers and consumers. erefore, when futures trading is used for hedging transactions in the opposite direction to spot trading, no economic loss will be caused no matter how the market conditions change. erefore, the mutual offsetting of trading profits and losses     in spot and futures transactions can reduce or avoid risks for producers and operators, so as to achieve the purpose of preserving value and obtaining better profits, which is conducive to the stable development of agricultural production. Secondly, the futures market has a mechanism to form "forward real prices," which reduces the blindness and volatility of agricultural production in a market economy. e futures market price has strong anticipation and authenticity, can truly reflect the future market supply and demand situation in advance, and can also adjust the potential demand in future periods in advance. is avoids the blindness of producers' decision-making, reduces the large fluctuation of agricultural products, and ensures the basic balance of supply and demand of agricultural products in a certain period. Moreover, the expected income of producers has been guaranteed, the needs of consumers have also been met, and the stability and continuity of production and business activities have been maintained. Using the futures market to guide contract farming is the best model to transfer the risk of agricultural prices, and it is practically feasible. We take the contract revenue (market price) as the horizontal axis, and the vertical axis to represent the profit and loss of farmers or enterprises as shown in Figure 7.
On the basis of the above-mentioned research, the effect of the agricultural economic risk forecast model based on data mining proposed in this paper is verified. In this paper, the simulation data is used to test, the agricultural economic data is obtained through the network, the data mining is carried out in combination with the model of this paper, and the agricultural economic risk is predicted. At the same time, this paper verifies the model proposed in this paper through simulation experiments, calculates the agricultural economic risk data mining effect and agricultural economic risk forecast effect of the system, and obtains the results shown in Tables 2 and 3 and Figures 8 and 9.
It can be seen from the above-mentioned research that the agricultural economic risk prediction system based on data mining technology proposed in this paper has a good effect.

Conclusion
In this paper, the BP neural network theory is used to combine the model theory with the data mining method. is realizes the characteristics of self-learning, self-adaptation, and generalization ability of the neural network and makes up for the uncertainty of the traditional early warning model which is difficult to deal with the highly nonlinear model. Moreover, it is technically feasible to successfully construct an agricultural financial risk early warning model based on the BP neural network. Similarly, the BP neural network technology can be used to construct macrorisk and microrisk early warning models for farmers, township enterprises, governments at all levels, agricultural financial regulatory agencies, and other agricultural financial entities. ese models can guide agricultural financial institutions to take risk precontrol measures in advance to avoid losses caused by risks. In order to improve the ability to cope with agricultural economic risks, this paper studies the agricultural economic risk prediction combined with data mining technology and builds an intelligent agricultural economic risk prediction system. e simulation study shows that the agricultural economic risk prediction system based on data mining technology proposed in this paper has a good effect.

Data Availability
e labeled datasets used to support the findings of this study are available from the corresponding author upon request.